
async function hd(num) {
	let res = await Promise.resolve().then(_ => {
		let count = 0;
		for (let i = 0;  num >= 0; i++) {
			console.log(`i = ${i}, count = ${count} num = ${num}`)
			count += num--;

		}
		console.log('count = ' + count)
		
		return count;
	});
	console.log(res);
	console.timeEnd("后盾人");

}

console.time("后盾人");

hd(10);
console.log("后盾人");